FROM ubuntu:20.04
MAINTAINER likeyoudo
RUN apt update -y && apt upgrade -y
RUN apt install -y redis-server
RUN sed -i -e "s@127.0.0.1@0.0.0.0@g" -e "s@protected-mode yes@protected-mode no@g" /etc/redis/redis.conf
EXPOSE 6379
CMD ["/usr/bin/redis-server","/etc/redis/redis.conf","--daemonize no"]